package com.googlecode.imule.redundant;
/**
 * Test class for UDP Communication
 * @author Neil Cowzer
 * @author Mike Solomon
 */
import java.io.IOException;
import java.util.Scanner;

public class TestUDP {
	public static void main(String[] args) throws IOException {
		UDPCommunication test = new UDPCommunication("two");

		Scanner scanner = new Scanner(System.in);


		System.out.println("port:");
		int newPort = scanner.nextInt();
		test.setPort(newPort);
		
		String input = "";

		while(!input.equalsIgnoreCase("close")){
			input = scanner.nextLine();
			test.Send(input);
		}
		System.out.println("closing application");
		System.exit(0);
	}
}
